40823152網際內容管理

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • Portable Python
  • w1-w3
    • Useing a portable system
    • Create a new portable system
  • W9
    • Bython reads exam scores
  • W10~W12
    • w10
      • www web
    • W11
    • W12
  • W13~W15
    • W13
    • W14
      • Solvespace
    • w15
      • Replit
      • replit_new_repository
  • W16
    • w16_replit
    • get_Meteorological_data
  • W17
    • W17_replit
  • Brython
    • 0. for 1+10
    • 1. Bython reads exam scores
    • 2. get_Meteorological_data
    • test
      • test2
  • Fault
    • Deploy to GitHub Pages
    • invalid path
Useing a portable system << Previous Next >> W9

Create a new portable system

Step 1:

Find the gen_portable_python.py file located at E:\wcm\Python3108_for_2023\data\tmp\py_ex, and open the file using the Scite editing environment.


Step 2

Confrim vision  "3.11.2", and Translation: Confirm the location where Python is stored ,Ex:"E:\wcm\wcm2023_test2\data\Python311" .          "\": the root directory.


Step 3

Run the program using the Scite editing environment by clicking on "Tools" -> "Go", You can see that the Python311 file has been added to the USB drive.


Step 4

Put the Start.bat and Stop.bat into this wcm2023_test2 folder, Creat the home_ipv4, home_ipv6, tmp folder.


Step 5

Download the Full 64-bit download (2.3M) zip file from the SciTE official website, Unzip the file and put it into E:\wcm\wcm2023_test2\data folder. Finial rename the name "wscite" to "wscite535".


Step 6

In the Python3108_for_2023 environment, open start_ipv4.bat using Scite, rename the file with the name of the latest version, For example, the area marked with a red line.


Step 7

1.Edit python.properties and change line 153 to: python.command=pythonw

2.Edit SciTEGlobal.properties and change line 162 to: load.on.activate=1 (if the file being edited is modified in other applications, it can be automatically loaded in SciTE)

3.Edit SciTEGlobal.properties and change line 204 to: tabsize=4

4.Edit SciTEGlobal.properties and change line 205 to: indent.size=4 Remove the # symbol on line 335 (code.page=65001, indicating that the editing area uses UTF-8 encoding) Comment out line 336 with the # symbol (code.page=0, indicating that the system's Chinese encoding, i.e. big-5, should be used)


Step 8

Completed the environment, write a simple code to test, for example, 'print("hi")'.


Useing a portable system << Previous Next >> W9

Copyright © All rights reserved | This template is made with by Colorlib